    
<? 
require_once 'includes/funciones.php';
conexion();
?>
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" href="2col_rightNav.css" type="text/css" />
<script type="text/javascript"  src="plugins/jquery.js"></script>
<script type="text/javascript" src="plugins/jquery_validate/jquery.validate.js"></script></head>
<!-- The structure of this file is exactly the same as 2col_leftNav.html;
     the only difference between the two is the stylesheet they use -->

<body>
 <div id="encabezado">
   	<?php
	require_once("encabezado.php");

	?> 
</div>
<!-- fin encabesado -->
<?php
if(isset($_GET['var'])){
$var=sqlint($_GET['var']);
$result=mysql_query("select c.id,c.titulo,c.descripcionautor,c.comentariowm,c.metadatos,c.tipo,c.tipo,c.subtipo,cat1.nombre as c1, cat2.nombre as c2, p.nombre as pa, prov.nombre as pro, r.nombre as reg, dpto.nombre as de,m.nombre as mu,o.nombre as org,a.nombre as area,c.autor,c.`fecha-up`,c.`usuario-id`,c.folder,c.imagen,c.`file` as f,c.verificado
from samptyt.capas as c,  samptyt.categoria1 as cat1,samptyt.categoria2 as cat2, samptyt.pais as p, samptyt.provincia as prov, samptyt.region as r, samptyt.departamento as dpto ,samptyt.municipio as m,
samptyt.organizacion  as o, samptyt.area as a
WHERE c.cat1=cat1.id and c.cat2= cat2.id and c.`pais-id`=p.id and c.`porv-id`=prov.id and c.`reg-id`=r.id and c.`dpto-id`=dpto.id and c.`muni-id`=m.id and c.`org-id`=o.id and c.`area-id`=a.id and c.id=$var");

while($row=mysql_fetch_array($result))
		{
		
?>
<div id="content">
  <div id="breadCrumb"></div>
  <h2 id="pageName">Informacion completa acerca de la capa <?php echo $row['titulo']; ?></h2>
  <div class="feature">
    <form id="form1" name="form1" method="post" action="">

  <label> </label><label></label>
  <label></label>
  
    <table width="699" border="1">
      <tr>
        <td width="180"><strong  class="titulo">Titulo</strong></td>
        <td width="315">&nbsp;</td>
        <td width="182"><strong>Descargar</strong></td>
      </tr>
      <tr>
        <td><samp class="cuerpo"><?php echo $row['titulo']; ?></samp></td>
        <td>&nbsp;</td>
        <td>  <p><a href="<?php echo $row['folder'].''.$row['f']; ?>"><?php echo $row['titulo']; ?></a></p>;</td>
      </tr>
    </table>
    <p>&nbsp;</p>
    <table width="699" border="0">
      <tr>
        <td width="434">
		  <p><br>
		    </p>
          <p><strong  class="titulo">Descripcion</strong><br><samp class="cuerpo"><?php echo $row['descripcionautor']; ?></samp></p>
          <p><strong  class="titulo">Comentario</strong><br><samp class="cuerpo"><?php echo $row['comentariowm']; ?></samp></p>
          <p><strong  class="titulo">Metadatos</strong><br><samp class="cuerpo"><?php echo $row['metadatos']; ?></samp></p>
          <p><strong  class="titulo">Tipo</strong><br><samp class="cuerpo"><?php echo $row['tipo'].'/'.$row['subtipo']; ?></samp></p> 
          <p><strong  class="titulo">Categorias</strong><br><samp class="cuerpo"><?php echo $row['c1'].'/'.$row['c2']; ?></samp></p>
          <p><strong  class="titulo">Ubicacion</strong><br><samp class="cuerpo"><?php echo $row['pa'].' '.$row['pro'].' '.$row['reg'].' '.$row['de'].' '.$row['mu']; ?></samp></p>
          <p><strong  class="titulo">Procedencia </strong><br><samp class="cuerpo"><?php echo $row['org'].'   -  '.$row['area']; ?></samp></p></td>
        </tr>
    </table>
    <p><a href="<?php echo $row['folder'].''.$row['f']; ?>"><?php echo $row['titulo']; ?></a></p>
    <p>
      <label></label>
      <br>
    </p>
    </form>
    <div id= "resultados">
      <hr>
    </div>
    
    <p>
      <?php 
	  }
	  }


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
    </p>
    <p>&nbsp;</p>
  </div>
  <div class="story">
    <h3>&nbsp;</h3>
  </div>
  <div class="story"></div>
</div>
<!--end content -->
<div id="menuderecha">
     	<?php
	require_once("menuderecha.php");

	?> 
</div>
<!--fin menuderecha -->
<div id="footer">
     	<?php
	require_once("footer.php");

	?> 
</div>

<br />
</body>
</html>